package com.tancire.net.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 客户推广对象 crm_company_task
 *
 * @author chenchao
 * @date 2023-12-25
 */
public class CrmCompanyTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 所属任务
     */
    private Long shopTaskId;

    /**
     * 对应资源
     */
    @Excel(name = "对应资源")
    private Long authId;

    /**
     * 资源编码
     */
    @Excel(name = "资源编码")
    private String authCode;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    private String authName;

    /**
     * 资源公钥
     */
    @Excel(name = "资源公钥")
    private String authPublicKey;

    /**
     * 所属客户
     */
    @Excel(name = "所属客户")
    private Long companyId;

    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String companyName;

    /**
     * 状态 0 正常 1 封禁
     */
    @Excel(name = "状态 0 正常 1 封禁")
    private Integer taskStatus;

    /**
     * 来源资源
     */
    private String parentAuthCode;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getShopTaskId() {
        return shopTaskId;
    }

    public void setShopTaskId(Long shopTaskId) {
        this.shopTaskId = shopTaskId;
    }

    public void setAuthId(Long authId) {
        this.authId = authId;
    }

    public Long getAuthId() {
        return authId;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthPublicKey(String authPublicKey) {
        this.authPublicKey = authPublicKey;
    }

    public String getAuthPublicKey() {
        return authPublicKey;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public String getParentAuthCode() {
        return parentAuthCode;
    }

    public void setParentAuthCode(String parentAuthCode) {
        this.parentAuthCode = parentAuthCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("authId", getAuthId())
                .append("authCode", getAuthCode())
                .append("authName", getAuthName())
                .append("authPublicKey", getAuthPublicKey())
                .append("companyId", getCompanyId())
                .append("companyName", getCompanyName())
                .append("taskStatus", getTaskStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
